import Mock from 'mockjs'
export const tableData = () => {
    return [
        {
            channelName: 'A1-1F分控制室',
            channelSeq: 0,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-大门口行李检测中',
            channelSeq: 1,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-1F大巴停车区',
            channelSeq: 2,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-污物区通道门口',
            channelSeq: 3,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-2F室内第一缓冲间(里)',
            channelSeq: 4,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-1F-大堂',
            channelSeq: 5,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-1F-大堂2',
            channelSeq: 6,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-1F-后门',
            channelSeq: 7,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-1F-外侧',
            channelSeq: 8,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-走廊',
            channelSeq: 9,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-1F-员工清洁电梯厅',
            channelSeq: 10,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-走廊02',
            channelSeq: 11,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-走廊03',
            channelSeq: 12,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-走廊04',
            channelSeq: 13,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-走廊通道',
            channelSeq: 14,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-走廊06',
            channelSeq: 15,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-门诊室',
            channelSeq: 16,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-门口马路',
            channelSeq: 17,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'IA1-1F-医疗间',
            channelSeq: 18,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
        {
            channelName: 'A1-1F左侧通道',
            channelSeq: 19,
            deviceCode: '1000034',
            channelType: '1',
            cameraType: '1',
            access: null,
            gpsX: null,
            gpsY: null,
            stat: 1,
        },
    ]
}

export const sectionList = () => {
    return Mock.mock({
        'array|5': [
            {
                'deviceCode': '1000034',
                'channelSeq|+1': 0,
                'stat|+1': [1, 2]
            }
        ]
    }).array
}